# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=httpsscanner
pkgver=1.2
pkgrel=3
groups=('blackarch' 'blackarch-scanner' 'blackarch-crypto')
pkgdesc='A tool to test the strength of a SSL web server.'
arch=('any')
url='https://code.google.com/p/libre-tools/'
license=('GPL3')
depends=('java-environment')
source=('https://libre-tools.googlecode.com/files/httpsScanner.jar')
sha512sums=('0e4ddc7445e85c69d39d9a7f3a7d6c9b9d1fa821')

package() {
  cd "$srcdir"

  install -dm 755 "$pkgdir/usr/bin"

  install -Dm 644 httpsScanner.jar "$pkgdir/usr/share/$pkgname/httpsScanner.jar"

  cat > "$pkgdir/usr/bin/$pkgname" << EOF
#!/bin/sh
exec java -jar /usr/share/$pkgname/httpsScanner.jar "\$@"
EOF

  chmod +x "$pkgdir/usr/bin/$pkgname"
}

